/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package radiostation;

import java.io.File;
import java.io.IOException;
import javax.sound.midi.InvalidMidiDataException;
import javax.sound.midi.MidiSystem;
import javax.sound.midi.MidiUnavailableException;
import javax.sound.midi.Sequence;
import javax.sound.midi.Sequencer;
import javax.sound.sampled.FloatControl;


/**
 *
 * @author stamatelopoulos
 */
public class RadioStation {

    /**
     * @param args the command line arguments
     */
        
    public static void main(String[] args) {
        // TODO code application logic here
        CentralMenu cm = new CentralMenu();
        cm.setVisible(true);
       
        try {
            
            Sequence sequence = MidiSystem.getSequence(new File("Pink_Floyd_Time.mid"));
            Sequencer sequencer = MidiSystem.getSequencer();
            sequencer.open();
            sequencer.setSequence(sequence);
            sequencer.start();
       } catch (IOException e) {
       } catch (MidiUnavailableException e) {
       } catch (InvalidMidiDataException e) {
       }
    }
}